
var startTop = 200;
var startLeft = 200;
var colSize = 50;
var startID = 100;
var centralCell = 113;
var hasGameStarted = 0;
var isManualMode = 0;
var isTeamMode = 0;

var selectedBlock;

var c1 = new Column(startID+1, startTop, startLeft, 0);
var c2 = new Column(startID+2, startTop, startLeft + colSize, 0 );
var c3 = new Column(startID+3, startTop, startLeft + colSize*2, 1 );
var c4 = new Column(startID+4, startTop, startLeft + colSize*3, 0 );
var c5 = new Column(startID+5, startTop, startLeft + colSize*4, 0 );
var c6 = new Column(startID+6, startTop + colSize, startLeft, 0);
var c7 = new Column(startID+7, startTop + colSize, startLeft + colSize, 0 );
var c8 = new Column(startID+8, startTop + colSize, startLeft + colSize*2, 0 );
var c9 = new Column(startID+9, startTop + colSize, startLeft + colSize*3, 0 );
var c10 = new Column(startID+10, startTop + colSize, startLeft + colSize*4, 0 );
var c11 = new Column(startID+11, startTop + colSize*2, startLeft, 1);
var c12 = new Column(startID+12, startTop + colSize*2, startLeft + colSize, 0 );
var c13 = new Column(startID+13, startTop + colSize*2, startLeft + colSize*2, 1 );
var c14 = new Column(startID+14, startTop + colSize*2, startLeft + colSize*3, 0 );
var c15 = new Column(startID+15, startTop + colSize*2, startLeft + colSize*4, 1 );
var c16 = new Column(startID+16, startTop + colSize*3, startLeft, 0);
var c17 = new Column(startID+17, startTop + colSize*3, startLeft + colSize, 0 );
var c18 = new Column(startID+18, startTop + colSize*3, startLeft + colSize*2, 0 );
var c19 = new Column(startID+19, startTop + colSize*3, startLeft + colSize*3, 0 );
var c20 = new Column(startID+20, startTop + colSize*3, startLeft + colSize*4, 0 );
var c21 = new Column(startID+21, startTop + colSize*4, startLeft, 0);
var c22 = new Column(startID+22, startTop + colSize*4, startLeft + colSize, 0 );
var c23 = new Column(startID+23, startTop + colSize*4, startLeft + colSize*2, 1 );
var c24 = new Column(startID+24, startTop + colSize*4, startLeft + colSize*3, 0 );
var c25 = new Column(startID+25, startTop + colSize*4, startLeft + colSize*4, 0 );

var h1 = new Column(1, startTop - colSize, startLeft + colSize*2 , 1);
var h2 = new Column(2, startTop + colSize*2, startLeft - colSize, 1);
var h3 = new Column(3, startTop + colSize*2, startLeft + colSize*5, 1);
var h4 = new Column(4, startTop + colSize*5, startLeft + colSize*2, 1);



var b11 = new Block(11, 'Yellow');
var b12 = new Block(12, 'Yellow');
var b13 = new Block(13, 'Yellow');
var b14 = new Block(14, 'Yellow');

var b21 = new Block(21, 'Blue');
var b22 = new Block(22, 'Blue');
var b23 = new Block(23, 'Blue');
var b24 = new Block(24, 'Blue');

var b31 = new Block(31, 'Saffron');
var b32 = new Block(32, 'Saffron');
var b33 = new Block(33, 'Saffron');
var b34 = new Block(34, 'Saffron');

var b41 = new Block(41, 'Green');
var b42 = new Block(42, 'Green');
var b43 = new Block(43, 'Green');
var b44 = new Block(44, 'Green');


var path = [];

path = 	{ 
			'Yellow' 	: Array(2, 111, 116, 121, 122, 123, 124, 125, 120, 115, 110, 105, 104, 103, 102, 101, 106, 107, 108, 109, 114, 119, 118, 117, 112, 113),
			'Blue'		: Array(3, 115, 110, 105, 104, 103, 102, 101, 106, 111, 116, 121, 122, 123, 124, 125, 120, 119, 118, 117, 112, 107, 108, 109, 114, 113),
			'Saffron' 	: Array(1, 103, 102, 101, 106, 111, 116, 121, 122, 123, 124, 125, 120, 115, 110, 105, 104, 109, 114, 119, 118, 117, 112, 107, 108, 113),
			'Green'		: Array(4, 123, 124, 125, 120, 115, 110, 105, 104, 103, 102, 101, 106, 111, 116, 121, 122, 117, 112, 107, 108, 109, 114, 119, 118, 113)
		}

var team = [];
team['blYellow']	= 'blBlue';
team['blBlue']		= 'blYellow';
team['blSaffron']	= 'blGreen';
team['blGreen']		= 'blSaffron';	
		
choosePlayers(2);
showPlayer(1);showPlayer(2);

